<%@ include file="header.jsp" %>

<body>
    <div class="content">
        <div class ="defaultBlock">
            <form:form commandName="moaning">
                <form:input type="text" size = "25" path="text"/>
                <input type = "submit" value = "Moan!" />
            </form:form>
        </div>
        <c:if test="${!empty justEntered}">
            <div class = "defaultBlock">
                <c:url var = "permalink" value = "moanings/${justEntered.id}"/>
                Just entered: <a href="${permalink}" target="#">${justEntered.text}</a>
            </div>
        </c:if>
    </div>
</body>
</html>
